<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>文档管理</title>

<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>    
<script language="javascript">
function viewArc(aid){
	window.open("{dede:global.cfg_phpurl /}/view.php?aid="+aid);
}
function editArc(aid,channelid){
	location = "archives_do.php?dopost=edit&channelid="+channelid+"&aid="+aid;
}
function delArc(aid){
	if(window.confirm('你确定要删除这篇文档吗?')) location="archives_do.php?aid="+aid+"&dopost=delArc";
}
</script>
</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>  
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php include(DEDEMEMBER."/templets/menu.php"); ?> 
      <div class="dedeMain">
        <div class="location"><span class="fLeft">已发布<?php echo $positionname; ?></span></div>

        <form name="form2" >
          <table cellspacing="0" CELLPADDING ="0" class='sglist' >
            <thead>
              <tr>
                <th >文章标题</th>
                <th width="10%">类目 </th>
                <th width="5%">点击 </th>
                <th width="12%">发布时间 </th>
                <th width="15%">操作</th>
              </tr>
            </thead>
            <tbody>
            
            {dede:datalist}
            <tr>
              <td class='sgtitle' ><a href='<?php echo $cfg_phpurl; ?>/view.php?aid=<?php echo $fields['aid']; ?>' target='_blank'><?php echo $fields['title']; ?></a> </td>
              <td align="center"><?php echo $fields['typename']; ?></td>
              <td align="center"><?php echo $fields['click']; ?></td>
              <td align="center"><?php echo GetDateMk($fields['senddate']); ?></td>
              <td align="center"><a href="javascript:delArc(<?php echo $fields['aid']?>);">删除</a> | <a href="javascript:viewArc(<?php echo $fields['aid']; ?>);">预览</a></td>
            </tr>
            {/dede:datalist}
            </tbody>
            
            <tfoot>
              <tr>
                <td colspan="6"><div class="pages mTB10 fRight">{dede:pagelist listsize=5/}</div>
                  <div class="clear"></div></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
</body>
</html>
